const {upload,add,list,total,del,update,findBookById} = require("../controller/book") 
const {auth} = require("../controller/common") 
module.exports = function(router){
    router.post("/upload",auth,upload);
    router.post("/add",auth,add);
    router.get("/list",auth,list)
    router.get("/total",auth,total)
    router.get("/del",auth,del)
    router.post("/update",auth,update)
    router.get("/findBookById",auth,findBookById)

}